package com.lsl.endworkvol.entity;

public class Volunteer extends User {
    private Integer id;
    private String volId;
    private String name;
    private String password;
    private String sex;
    private String phone;
    private String email;
    private String majorclass;
    private String caption;

    public Volunteer() {
    }

    public Volunteer(Integer id, String volId, String name, String password, String sex, String phone, String email,
            String majorclass, String caption) {
        this.id = id;
        this.volId = volId;
        this.name = name;
        this.password = password;
        this.sex = sex;
        this.phone = phone;
        this.email = email;
        this.majorclass = majorclass;
        this.caption = caption;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getVolId() {
        return volId;
    }

    public void setVolId(String volId) {
        this.volId = volId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMajorclass() {
        return majorclass;
    }

    public void setMajorclass(String majorclass) {
        this.majorclass = majorclass;
    }

    public String getCaption() {
        return caption;
    }

    public void setCaption(String caption) {
        this.caption = caption;
    }

    @Override
    public String toString() {
        return "Volunteer [id=" + id + ", volId=" + volId + ", name=" + name + ", password=" + password + ", sex=" + sex
                + ", phone=" + phone + ", email=" + email + ", majorclass=" + majorclass + ", caption=" + caption + "]";
    }

}
